﻿using System.ComponentModel.DataAnnotations.Schema;

namespace SC.GridManage.Domain.Models
{
    /// <summary>
    /// 实体类的基类
    /// </summary>
    public class BaseEntity
    {
        /// <summary>
        /// 主键id:非自增才能雪花id
        /// </summary>
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public long Id { get; set; }
        /// <summary>
        /// 逻辑删除:0 正常 1删除
        /// </summary>
        public bool IsDeleted { get; set; }=false;

    }
}
